﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using System.Data;

namespace Data.DBOES
{
    [TableAttribute("Role")]
    [Serializable]
     public class Role:DBO<Role>
    {
        private int? _IdRole;
        [ColumnAttribute("IdRole", SqlDbType.Int, 4, true, true, false)]
        public int? IdRole
        {
            get { return _IdRole; }
            set { _IdRole = value; }
        }
        private string _RoleName;
        [ColumnAttribute("RoleName", SqlDbType.NVarChar, 300, false, false, true)]
        public string RoleName
        {
            get { return _RoleName; }
            set { _RoleName = value; }
        }
        private Boolean? _IsActive;
        [ColumnAttribute("IsActive", SqlDbType.Bit, 1, false, false, true)]
        public Boolean? IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }
        private DateTime? _CreateDate;
        [ColumnAttribute("CreateDate", SqlDbType.DateTime, 8, false, false, true)]
        public DateTime? CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }
        private int? _IdLanguage;
        [ColumnAttribute("IdLanguage", SqlDbType.Int, 4, false, false, true)]
        public int? IdLanguage
        {
            get { return _IdLanguage; }
            set { _IdLanguage = value; }
        }
        public Role()
        { }
        public Role(int? IdRole)
        {
            this.IdRole = IdRole;
        }
        public Role(int? IdRole, string RoleName, Boolean? IsActive, DateTime? CreateDate, int? IdLanguage)
        {
            this.IdRole = IdRole;
            this.RoleName = RoleName;
            this.IsActive = IsActive;
            this.CreateDate = CreateDate;
            this.IdLanguage = IdLanguage;
        }
    }
}
